﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections.ObjectModel;
using DAL;
using Administratation.Classes;

namespace Administratation.Models
{
    public class OffersBrowserModel
    {
        private ObservableCollection<Offer> offers;

        public ObservableCollection<Offer> Offers
        {
            get
            {
                if (this.offers == null)
                {
                    this.offers = new ObservableCollection<Offer>(DatabaseOffersBrowserPersister.GetOffers());
                }
                return this.offers;
            }
        }

    }
}
